<extend name="Public/common"/>
<block name="othercss">
<script src="{$theme_path}/js/basic.js"></script>
<script src="{$theme_path}/js/login.js?201812013_8"></script>
</block>
<block name="body">
<div class="main">
    <div class="login-bg" style="background-image: url('{$theme_path}/images/bg-login.jpg')">
        <div class="box clearfix">
            <div class="login-box">
                <div class="msg_error"></div><h2>账户登录</h2>
                <div class="login-input clearfix">
                    <i class="icon icon-login1"></i><input type="text" name="username" id="username" value="{$remember_name}" class="input1" />
                </div>
                <div class="login-input clearfix">
                    <i class="icon icon-login2"></i><input type="password" class="input1" name="password" id="password" placeholder="输入密码"  />
                </div>
                <div class="clearfix">
                    <a class="right" href="{:urlrotue('Register/index')}">免费注册<i class="icon "></i></a>
                    <div class="left"><i class="login-btn">√</i>自动登录</div>
                    <input type="hidden" name="remember" id="remember" value="0">
                </div>
                <input type="hidden" id="login_url" value="{$login_url}" />
                <!--<input type="submit" value="登录"  class="sub" />-->
                <a class="sub" id="btn_login">登 录</a>
                <a class="wanji" href="{:urlrotue('Register/forget')}">忘记密码？</a>
                <div class="lans">第三方平台登录</div>
                <div class="href-a">
                    <a class="icon iconl1"  href="{:urlrotue('PayWechat/login')}" ></a>
                    <A class="icon iconl2"></A>
                    <A class="icon iconl3" style="display:none"></A>
                </div>
            </div>
        </div>
    </div>
</div>
<!--end  top-->
</block>
<block name="otherjs"> 
<script type="text/javascript">
    $(function(){
        $('.left').click(function(){
            $(this).children('i').toggleClass('on');
			var remember = $('#remember').val();
			if(remember==1){
			$('#remember').val('0');
			}else{
			$('#remember').val('1');
			}
        })
    });

</script>
</block>

